Method of generating a grid on a heterogenous formation crossed by one or more geometric discontinuities in order to carry out simulations

ABSTRACT

Method of generating a hybrid grid of a heterogeneous formation crossed by one or more geometric discontinuities such as, for example, an underground formation where one or more wells have been drilled, or a fractured formation, by combining structured grids and non-structured grids in order to carry out simulations in accordance with a defined numerical pattern.  
     Hybrid gridding in an application to a medium crossed by wells for example is essentially performed by associating a first structured grid (G 1 ) for gridding of the heterogeneous medium respecting the discontinuities thereof with second structured, radial type grids (G 2 ) for gridding of a zone around each pipe or well, which allows to better respect particular constraints linked with flows in this zone. In order to connect the first grid of the medium and the second well grids, non-structured transition grids (G 3 ) are interposed between them and the power diagram technique is used therefore, which is particularly advantageous in that it allows to appropriately connect non-regular structured grids.  
     Applications: hydrocarbon reservoir simulators for example.

FIELD OF THE INVENTION

[0001] The present invention relates to a method of generating a hybrid grid of a heterogeneous formation crossed by one or more geometric discontinuities in order to carry out simulations for example.

[0002] The method is more particularly applied to formation of a grid suited to an underground reservoir crossed by one or more wells, or by fractures or faults, in order to model displacements of fluids such as hydrocarbons.

BACKGROUND OF THE INVENTION

[0003] Grid generation is a crucial element for the new generation of reservoir simulators. Grids allow to describe the geometry of the geologic structure studied by means of a representation in discrete elements wherein simulation is performed according to a suitable numerical pattern. Better comprehension of physical phenomena requires 3D simulation of the multiphase flows in increasingly complex geologic structures, in the vicinity of several types of singularities such as stratifications, faults, pinchouts, channels and complex wells. All this complexity has to be taken into account first by the grid which has to reproduce as accurately as possible the geologic information in its heterogeneous nature.

[0004] Grid modelling has made great advances during the past few years in other fields such as aeronautics, combustion in engines, structure mechanics, etc. However, the gridding techniques used in the other fields cannot be applied as they are to the petroleum sphere because the professional constraints are not the same. For example, in reservoir simulation, the numerical patterns are constructed from control volumes in order to better respect the mass conservation in the case of transport equations of hyperbolic nature. The grid must be a <<block-centered>> type grid, i.e. the nodes must be inside each layer and the boundaries of each block must follow the interface between the layers. Now, if this constraint was not taken into account, the nodes would naturally be placed along the faults and along the stratification boundaries. The consequence of this would be that these interfaces would pass through the control volume used. The saturation, constant in the control volume, could not respect then the discontinuity and the results would not be accurate. It is therefore necessary to develop new techniques that are better suited to the petroleum sphere requirements.

[0005] Cartesian grids, which are commonly used in current commercial simulators, are unsuited for solving these new problems posed by the development of petroleum reservoirs. Cartesian grids, based on parallelepipedic elements, do not allow representation of such complex geometries.

[0006] There is a well-known method of generating structured 3D hexahedral grids of CPG (Comer-Point-Geometry) type which respects the geometry of the bodies. It is described in patent FR-2,747,490 (U.S. Pat. No. 5,844,564) filed by the applicant and also in the following publication:

[0007] Bennis Ch. Et al. <<One More Step in Gocad Stratigraphic Grid Generation>>: Taking into Account Faults and Pinchouts; SPE 35526, Stavanger, 1996.

[0008] This grid type is more flexible than cartesian grids because it consists of any hexahedral elements that can be degenerated. It strictly respects the horizons, the faults and it allows to represent certain unconformities such as pinchouts because its construction is based on these elements. However, this type of grid does not allow to solve all the geometric complexities such as, for example, circular radial grids around complex wells. It is possible to form separately the grid of the reservoir and the grids around the wells but it is difficult to represent several objects in the same CPG type reservoir grid because of connection problems linked with the structured nature of the grid.

[0009] Another approach is also known where 3D grids only based on tetrahedral Delaunay elements, with a circular radial refinement around the wells, are automatically generated. The advantage of such an approach is that it is entirely automatic and does practically not require the user's attention. However, this method has drawbacks which make the results obtained difficult to use:

[0010] there are on average five times as many grid cells as in a CPG type grid for the same structure, which is very disadvantageous for simulation calculations,

[0011] unlike the structured grids which are easy to visualize, to explore from the inside and to locally modify interactively, it is very difficult and sometimes impossible to properly control the tetrahedral grids because of their size and especially because of their non-structured nature. This poses problems for validating the grid from a geometric point of view as well as for understanding and validating the result of a simulation on this type of grid.

[0012] Other approaches are also well-known, which allow to generate grids, notably grids based on control volumes generated from a triangulation associated with techniques of aggregation of the triangles (or tetrahedrons) into quadrangles allowing the number of grid cells to be reduced. Although promising results were obtained with these new grids, precise representation of the geologic complexity of reservoirs and wells remains a subject for research and development. Despite their hybrid aspect, they remain entirely unstructured and would therefore be very difficult to manage and to handle in real 3D. Furthermore, taking account of real 3D faults and deviated wells would greatly increase this difficulty.

[0013] Patent application FR-99/15,120 filed by the applicant describes a method of generating a 3D hybrid grid on a heterogeneous medium, comprising using a first structured grid, of CPG type for example, and structured radial grids around well or pipe trajectories drawn or imported in the model in order to better take into account the particular constraints linked with the flows in the vicinity of these wells. They are combined by including the radial grids around the or around each well in the global reservoir grid after forming therein cavities that are large enough to allow formation of non-structured transition grids.

[0014] There are various well-known techniques for forming non-structured grids. They can be based on canonical polyhedrons (tetrahedrons, pentahedrons, pyramids, etc.) according to the numerical pattern used, and entirely 3D solutions applicable to these grid types are known.

[0015] The method according to the invention is intended for 2.5D generation of transition grids based on Voronoi type or similar polyhedrons in order to apply control volume type numerical patterns, which are reduced to a 2D problem provided that all the layers of the well grids and of the reservoir grid can be projected vertically in a horizontal plane so as to form identical grid cells. Such a grid must meet certain conditions:

[0016] the segment connecting the centres or sites of two neighbouring cells must be orthogonal to the side common to the two cells,

[0017] two neighbouring cells must entirely share the side that connects them, i.e. a cell can be connected to only one other cell by the same side, and

[0018] the cells must be convex.

[0019] In 2D, these constraints impose that:

[0020] the edges of the boundary polygons must not be modified (each one must correspond to an edge of a cell created, without subdivision of the edge), and the cells created must be convex,

[0021] each cell must have a centre such that the straight line connecting the centres of two adjacent cells is perpendicular to the edge shared by the two cells, and

[0022] the centres of the cells must be inside their cell.

[0023] Other entirely non-structured approaches are also well-known, which allow to generate grids, notably grids based on control volumes generated from a triangulation, associated with techniques of aggregation of the triangles (or tetrahedrons) into regular quadrangles allowing the number of grid cells to be reduced.

[0024] Voronoi diagrams are formed, as it is well-known, by determining around a set of sites P distributed in a space regions consisting of series of points which are closer to each site than to any other site P of the set. This construction technique is described in detail notably in the following documents:

[0025] Aurenhammer F., 1991: Voronoi diagrams: a Survey of Fundamental Geometric Data Structure, ACM Comput. Surv., 23, 345-405,

[0026] Fortune S., 1992: Voronoi Diagrams and Delaunay Triangulations, pages 225-265 of D. Z. Du & F. K. Hwang (eds), Computing in Euclidean Geometry, 2 _(nd) edn., Lecture Notes Series on Computing, vol.4, Singapore, World Scientific.

[0027] The cells of a Voronoi diagram meet the following constraints: the orthogonality between the centres and the adjacent edge is respected and the cells are convex. It is therefore natural to propose filling the cavity with Voronoi cells while trying to respect the edge geometric constraints. However, if a Voronoi diagram is created from the existing points (ends of the polygon edges) (see FIG. 6), it can be observed that this diagram does not meet the geometric constraints, that the polygon edges do not belong to the diagram and that the edges are cut.

[0028] In order to introduce the edges of the boundary polygons, it is possible to duplicate the existing points. The Voronoi diagram thus has to pass through the edges. However, this is not sufficient yet because, although the edges are in the diagram, they still are divided (see FIG. 7).

[0029] Since the edges of the Voronoi diagram correspond to the mid-perpendiculars of the segments defined by two sites, one can try to pass these mid-perpendiculars through the ends of the edges defined by the polygons. For a given end point, the sites of the Voronoi diagram are therefore selected along edges adjacent to this point, equidistant therefrom. Since the points are duplicated, one can be certain to obtain an edge of the Voronoi diagram on the edge of the polygon. However, if the result obtained is correct in the case of a regular polygon (FIG. 8a), this is not the case for a non-regular polygon (FIG. 8b). When the last sites are placed, they are not necessarily at the same distance from the point as the first placed sites.

[0030] Generally speaking, using Voronoi cells for filling the cavity does therefore not seem to be suitable.

SUMMARY OF THE INVENTION

[0031] The method according to the invention allows to simplify the formation of a hybrid grid suited to a heterogeneous medium crossed by at least one geometric discontinuity of known geometry, in order to form a model representative of fluid flows in this formation in accordance with a defined numerical pattern, the structure of the medium being known a priori from available data acquired by means of in-situ measurements, analyses and/or interpretations of images of the medium (seismic images for example, in the case of a reservoir).

[0032] The method comprises forming at least a first structured grid (irregular CPG type grid for example) for gridding of at least part of the medium, forming at least a second structured grid for gridding of another part of the medium, forming at least one cavity between the structured grids including each geometric discontinuity and of sufficient size to allow to form at least one non-structured grid providing transition between the structured grids, and forming each non-structured transition grid by means of power diagrams and by imposing conformity of the transition grids with the grid of the walls of each cavity.

[0033] The method is for example applied to a heterogeneous medium where at least one geometric discontinuity is a pipe or a well of known geometry crossing the medium, in which case a first structured grid is formed in the medium by respecting the discontinuities thereof, a second structured, radial type grid is formed around each well, each cavity being delimited around each second structured radial grid by deactivating grid cells of each first structured grid.

[0034] The method is also applied for example to a heterogeneous medium where at least one geometric discontinuity is a fracture or a fault crossing the medium, in which case a first structured grid and a second structured grid are formed in parts of the heterogeneous medium, on either side of each fracture, while respecting the discontinuities thereof, each cavity formed in order to include a non-structured transition grid therein being formed by deactivating grid cells of the first and second structured grids, on either side of each fault or fracture.

[0035] The use which is made here of the power diagram technique is particularly advantageous and convenient in that it allows to appropriately connect the non-regular structured grids.

[0036] The invention also relates to a method of simulating, in accordance with a defined numerical pattern, the evolution of a process such as fluid flows in a heterogeneous medium crossed by at least one geometric discontinuity of known geometry, in accordance with a defined numerical pattern, the structure of the medium being known a priori from available data acquired by means of in-situ measurements, analyses and/or interpretations of images of the medium. This simulation is obtained by forming a hybrid grid consisting of at least a first structured grid (irregular CPG type grid for example) for gridding of at least part of the medium, at least a second structured grid for gridding of another part of the medium, at least one cavity between the structured grids including each geometric discontinuity and of sufficient size to allow formation of at least one non-structured grid providing transition between the structured grids, by using power diagrams and by imposing conformity of the transition grids with the grid of the walls of said cavities, and by solving the numerical pattern in the grid made on the medium for modelling the process.

[0037] The global hybrid grid is thus obtained by combination of several grid types: a structured reservoir grid, a radial grid around each well, also structured, and non-structured transition grids which connect the previous two grid types. Each one of these grids has its own formation methods.

[0038] Using a reservoir simulator of a well-known type, such as ATHOS™ or SCORE™ for example, for a reservoir provided with a hybrid grid obtained by means of the method, allows production simulations to be performed.

BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Other features and advantages of the method according to the invention will be clear from reading the description hereafter of non limitative examples, with reference to the accompanying drawings wherein:

[0040]FIG. 1 shows an example of a structured grid of a faulted reservoir,

[0041]FIG. 2 shows an example of a radial grid around a vertical well,

[0042]FIG. 3 shows an example of grid of a horizontal well,

[0043]FIG. 4 shows, in 2.5D, an example of a gridded reservoir where cavities are provided for gridded wells, before the stage of creation of non-structured interstitial grids intended to connect them together,

[0044]FIG. 5 shows an example of a 2D grid before creation of the transition grid,

[0045]FIG. 6 shows an example of a Voronoi diagram which disregards geometric constraints,

[0046]FIG. 7 shows an example of a Voronoi diagram whose edges are divided,

[0047]FIGS. 8A, 8B show examples of Voronoi diagrams in a regular case and in any case with conflict respectively,

[0048] FIGS. 9 to 14 illustrate the definitions and properties of the power diagrams, reminded hereafter,

[0049]FIG. 15 shows an example of a power diagram obtained between two polygons,

[0050]FIG. 16 shows an example of a 2D interstitial grid formed by means of the method according the invention, between a structured reservoir grid and structured grids formed around a vertical and horizontal well crossing the reservoir,

[0051]FIG. 17 shows an example of a global grid obtained with the method, and

[0052]FIG. 18 shows five wells provided each with a radial grid, included in a gridded reservoir, by means of non-structured transition grids based on any polyhedral grid cells.

DETAILED DESCRIPTION

[0053] Generation of the hybrid reservoir grid is carried out in stages with addition/subtraction of elementary grids of different types.

[0054] 1) In order to represent the reservoir as a whole, an i, j, k structured grid of a type known to specialists, referred to as CPG, as described in the aforementioned patent FR-2,747,490 filed by the applicant, is used for example.

[0055] The reservoir can be faulted with downcreep of a block in relation to the other. The major horizons and faults are first modelled by continuous surfaces from data resulting from an interpretation of seismic images of the subsoil or from data obtained during drilling (well markers). The geologic structure is then divided into faulted blocks resting on these surfaces. These blocks are individually gridded, then reassembled. Gridding of a block first consists in gridding the edge surfaces, then the inside is populated by transfinite interpolation of the edge surface grids. Relaxation techniques are then applied to the edge surfaces and to the inside so as to harmonize and to regulate the grid. The grid thus obtained strictly respects the horizons, the faults and it allows to represent certain unconformities such as pinchouts. It meets all the constraints of geologic nature.

[0056] Such a grid is obtained for example in accordance with the method described in the aforementioned patent FR-2,747,490.

[0057] 2) The well trajectories are drawn synthetically or imported. A structured radial grid is then generated around each well in order to take account of the particular constraints linked with the flows in the vicinity of these wells.

[0058] In the example shown in FIG. 2, the structured grid around a vertical well is of circular radial type. It is also a CPG type grid. Its generation first consists in sampling a disc at r, θ in the horizontal plane. The 2D grid thus obtained is then projected vertically upon the various layers of the reservoir grid. Here, the i, j, k of the matrical structure correspond to the samplings at r, θ and z respectively (see FIG. 11).

[0059] The grid around a horizontal well (FIG. 3) is i, j, k structured, it is of the same type as that of the reservoir, except that a well cannot be faulted. It is also obtained by projecting vertically upon the various layers of the reservoir grid a 2D grid belonging to a horizontal plane.

[0060] 3) This radial grid is then inserted around the or around each well in the global reservoir grid. A cavity is therefore first created in the reservoir grid by deactivating all the grid cells in contact with well grid cells (FIGS. 4, 5). The space freed between the reservoir grid and the well grid must be sufficient to allow convenient formation of a transition grid. It can represent for example about the equivalent of two grid cell layers.

[0061] 4) A non-structured transition grid is then generated in this cavity (FIGS. 16, 17) in order to connect the structured radial grid around the well to that of the reservoir best respecting the constraints linked with the numerical pattern. The user can deactivate the grid of a well any time by reactivating the grid cells of the corresponding cavity in the reservoir grid.

[0062] Generation of the transition grid uses a technique known in the art, which is for example described by:

[0063] Aurenhammer F., 1987: Power diagrams: properties, algorithms and applications; SIAM J. Comput., 16(1), 78-96, some notions of which are reminded hereafter to clarify the description.

[0064] Weighted point

[0065] Let p be a point of

³ with which a weight w is associated. The pair (p,w) thus formed is denoted by ρ and referred to as weighted point. A weighted point can also be interpreted as a circle C of centre p and of radius {square root}{square root over (w)}.

[0066] Notion of power

[0067] The power of a point x in relation to weighted point ρ or to circle C is denoted by Power_((ρ,x))=Power_((S,x))=|px|²-w. |px|² represents here the Euclidean distance between p and x. Geometrically, if x is outside the circle and if t is the intersection point of a tangent to C passing through x, Power_((S,x))=|xt|² (see FIG. 9).

[0068] Power of a point in relation to a circle Let C be a circle of centre c and of radius r, of equation:

C(x)=0 where C(x)=xc ²-r.

[0069] C(x) is the power of point x in relation to C.

[0070] Power diagram

[0071] Let S be a set of weighted points. Each point ρ of S is associated with a region R(ρ), potentially empty, defined by:

R(ρ)={xε

³/Power_((ρ,x))<Power_((ρt,x)), ρ_(l)εS−{ρ}}

[0072] This set of regions or cells is called power diagram of S.

[0073] Radical axis of two circles

[0074] The radical axis of two circles is the line formed by the points having the same power in relation to the two circles. In particular, if the two circles have an intersection that is not equal to zero, the radical axis is the line passing through the intersection (FIG. 10).

[0075] Use of the power diagrams

[0076] Power diagrams lend themselves well to solution of the problem posed because they afford the advantage of having the following properties: the cells that constitute them are convex, each cell has a centre (site) and the line connecting the centres of two adjacent cells is perpendicular to the edge common to the two cells, properties which thus satisfy part of the conditions laid down.

[0077] Furthermore, it is advisable that the cells of the power diagram respect the edges of the boundary polygons. The edges of the polygons therefore have to be edges of the power diagram. The constraint imposed for such a diagram is that the edges of the polygons have to be the edges of a Delaunay triangulation commonly used in the sphere of grids. This requirement is readily met because the boundary polygons are determined as the cavity is created. Once this condition established, it is possible, as explained hereafter, to create a power diagram meeting the constraints.

[0078] Constrained power diagram: accordance with the given edges

[0079] Let (S) be a set of n edges in the plane belonging to a Delaunay triangulation (T_(d)) (see FIG. 11). Let (S*) be all the dual edges of (S) in the Voronoi diagram associated with (T_(d)) (see FIG. 12).

[0080] Let a_(l), and b_(l), i=1 . . . n, be the ends of edge S_(i). Consider its dual edge S_(i)* in the Voronoi diagram associated with (T_(d)). It defines a set of circles (C_(i)) of centres c_(l) taken on S_(i)* and of radius ∥c_(l)a_(l)∥=∥c_(l)b_(l)∥. Any circle C_(i) of (C_(i)) therefore comprises a_(i) and b_(l) and it is an empty circle (FIG. 13). Consider C_(l) ¹ and C_(l) ² two circles of (C_(i)). According to all that has been written above, a_(l), and b_(l), are on C_(l) ¹ and C_(l) ². a_(l) and b_(l) are thus the intersection points of C_(l) and C_(l) ² and they are located on their radical axis. In terms of power, it can be written in the form:

C_(l) ¹(a_(l))=C_(l) ²(a_(l))=C_(l) ^(1(b) _(l))=C_(l) ²(b_(l))=0

[0081] By construction, whatever C_(j) of (C_(j)), j=1..n, j≠i, the inside of C_(j) is empty and therefore contains neither a_(l), nor b_(l). It is thus possible to write

∀j,C_(j)(a_(l))≧0

∀j,C_(j)(b_(l))≧0.

[0082] a_(i) therefore belongs to an edge of the power diagram borne by the radical axis of C_(l) ¹ and of C_(l) ²,b_(l) belongs to an edge of the power diagram borne by the radical axis of C_(l) ¹ and of C_(l) ² (FIG. 14).

[0083] Since, by definition, the cells of a power diagram are convex, we deduce therefrom that segment [a_(i), b_(i)]=S_(l) belongs to the power diagram.

[0084] This is true for any S_(i) of (S). A constrained power diagram containing all the segments of (S) can thus be constructed. The degree of freedom for constructing such a diagram is great because the only constraint consists in selecting two centres per dual edge S_(i)* for any S_(i) of (S).

[0085] It can be noted that, if S_(i)* is reduced to a point, all of (C_(i)) is reduced to a circle of centre c_(i)=S_(i)*. A virtual centre c_(iv), infinitely close to the first one, therefore has to be used in such a case in order to define a second circle.

[0086] Construction of the transition grid by means of the power diagrams

[0087] Creation of a power diagram, transition grid, starts with the construction of a Delaunay triangulation of the vertex ends of the edges of the boundary polygons. It has to be checked that all the initial edges really are edges of the triangulation obtained. The Voronoi diagram associated with the vertices of the polygons is then constructed. This Voronoi diagram defines, for each edge A of the polygons, a dual edge A′.

[0088] Then, for each edge A, two sites of the final power diagram are positioned on A′. Since the sites must be weighted points, a weight equivalent to distance ∥ax∥² where a is an end of A is associated with site x located on A′. The power diagram obtained from these sites then respects the edges of the polygons. FIG. 16 is an example of a power diagram obtained between two polygons with a single site per edge.

[0089] Once this diagram obtained, all the initial constraints are now met, even if it has to be checked that each site is inside its cell. By construction, the sites are positioned on the dual edges without specifying in which way. It has so far been shown that a correct power diagram is available from the moment that the sites are selected on A′, but the possibilities of selection of these sites are multiple. It is however possible to guarantee that, if any edge A intersects its dual edge A′, there is at least one power diagram respecting the boundary polygons and whose sites are inside their cell.

[0090] Results

[0091]FIG. 16 shows two examples of 2D grids. The first example corresponds to a vertical well situation, whereas the second one shows the case of a horizontal well. It can be seen in these examples that the cells generated for connection of the well and reservoir grids meet the constraints stated in the problem: the cells are convex, the sites are inside their cell, the edges of the polygons (grid edges) are respected and the line connecting the sites of two adjacent cells is perpendicular to the edge common to the two cells. The 2D stage first allows to generate the transition grids and thus to connect the well grids with the reservoir grid. In order to obtain volume grids, the initial grids are converted to 2D grids and a reverse treatment is applied to the 2D results, which allows to obtain a final global 2.5D grid.

[0092] The case where the second structured grids are radial type grids formed around wells crossing the medium, with delimitation of cavities around each second grid in order to include a transition grid, has been considered. It is however clear that the method is applied for gridding of a medium with other types of geometric discontinuities, such as for example an underground reservoir crossed by fissures. In such a case, structured grids are formed in parts of the medium on either side of the fissures, and cavities are delimited by deactivating grid cells of the two structured grids around each fissure, large enough to form non-structured transition grids therein by means of power diagrams and by imposing conformity of the transition grids with the grid of the walls of each cavity. 

1. A method of generating a hybrid grid suited to a heterogeneous medium crossed by at least one geometric discontinuity of known geometry, in order to form a model representative of fluid flows in this medium in accordance with a defined numerical pattern, the structure of the medium being known a priori from available data acquired through in-situ measurements, analyses and/or interpretations of images of the medium, comprising forming a hybrid grid including at least one first structured grid for gridding of at least part of the medium, forming at least one second structured grid for gridding of another part of the medium, forming at least one cavity between the at least one first structured grid and each at least one second structured grid with a sufficient size to allow formation of at least one non-structured grid providing transition between the structured grids, characterized in that it includes forming each non-structured transition grid by means of power diagrams and by imposing conformity of the non structured transition grids with the walls of each cavity.
 2. A method as claimed in claim 1, applied to a heterogeneous medium where at least one geometric discontinuity is a pipe or a well of known geometry crossing the medium, characterized in that a radial type grid is formed around each well, each cavity being delimited around each second structured radial grid by deactivating grid cells of the first structured grid.
 3. A method as claimed in claim 1 or 2, applied to a heterogeneous medium where at least one geometric discontinuity is a fracture or a fault crossing the heterogeneous medium, characterized in that a first structured grid and a second structured grid are formed in parts of the heterogeneous medium, on either side of each fracture, by respecting the discontinuities thereof, each cavity delimited to include a non-structured transition grid being formed by deactivating grid cells of the first and second structured grids, on either side of each fracture.
 4. A method as claimed in any one of the preceding claims, characterized in that it includes imposing to polygonal edges forming the walls of each cavity to be the edges of a Delaunay type triangulation.
 5. A method for simulating, in accordance with a defined numerical pattern, the evolution of a process such as fluid flows in a heterogeneous medium crossed by at least one geometric discontinuity of known geometry, the structure of the medium being known a priori from available data acquired through in-situ measurements, analyses and/or interpretations of images of the medium, comprising forming a hybrid grid including at least one first structured grid for gridding of at least part of the medium, forming at least one second structured grid for gridding of another part of the medium, forming at least one cavity between the at least one first structured grid and each at least one second structured grid with a sufficient size to allow formation of at least one non-structured grid providing transition between the structured grids, characterized in that it includes forming the non-structured transition grids by using power diagrams and imposing conformity of the non structured transition grids with the walls of each cavity., and solving the numerical pattern in the hybrid grid formed for the medium in order to model the process.
 6. A method as claimed in any one of the previous claims, characterized in that each first structured grid is a non-regular grid, of CPG type. 